<%= render partial: '/two_factor_authentication/header_tags' %>
<% html_title(t(:label_my_account), t('two_factor_authentication.devices.confirm')) -%>
<% breadcrumb_paths link_to(t('two_factor_authentication.label_two_factor_authentication'), index_path),
                    t('two_factor_authentication.devices.confirm') -%>

<%= styled_form_tag(confirm_path, method: :post, id: 'login-form', class: 'form -bordered', autocomplete: "off") do %>
  <h2><%= title %></h2>
  <p><%= message.html_safe %></p>
  <hr class="form--separator">
  <%= back_url_hidden_field_tag %>
  <div class="form--field -required -wide-label">
    <%= styled_label_tag 'otp', l(:field_otp) %>
    <div class="form--field-container">
      <%= styled_text_field_tag 'otp', nil, required: true, autocomplete: 'off', size: 6, maxlength: 6, tabindex: 1, focus: true  %>
    </div>
  </div>
  <div>
    <input type="submit" name="login" value="<%= t 'button_continue' %>" class="button -highlight" tabindex="2" />
  </div>
<% end %>
